package com.zhuiYun.project.api.hotSellingList.entity;/**
 * @author syc
 * @date 2023/4/7 9:25
 */

import com.zhuiYun.project.api.commoditydetail.entity.Commodity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * @ClassName commodityType
 * @Description TODO
 * @Author sgo
 * @Date 2023/4/7 9:25
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name="commodity_type")
public class CommodityType {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String typeName;
    private Date createTime;
    private Date updatTime;
    private String imageId;
    private String back;
    private Integer delFlag;
    private Integer numberOfViews;
    private List<Commodity> commodityList;
}
